Repository navigation
B-Extra: edit locks always live through the Durable Object - #440
Merged
Merged
Conversation
- Worker: the lock routes tell the file's room when the lock is taken, renewed or let go; every save of a lockable file tells it "saved"; an alarm at the lock's end says when it ran out; a viewer that joins hears who holds it at once. The live socket opens in every project. - Studio (timeline, shot, flow, canvas): the room's socket in every project; the content streams only in a realtime project. Freed: "Nobody is editing" and the last save at once. - Device Flows editor: joins the room; takes the lock as soon as it is free, reads every save made elsewhere at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bubulux
force-pushed
the
feat/426-live-locks
branch
from
November 25, 2026 16:02
73d8c5b to
95b9363
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #426 (B-Extra), round 2: edit locks are always live.
What changed
live.ts,canvas.ts,files.ts):CanvasRoomwhen the lock is taken, renewed or released (tellRoom).saved.canvas_livenow only decides whether clients stream the content.lock.ts; canvas): the socket opens in every project. Who edits updates at once. When the lock is freed, the window shows "Nobody is editing" and reads the last save. Content (doc,draft) streams only in a realtime project.Checked
make checkgreen, including a new route test: lock taken, saved, then released reaches a viewer without an editor socket. The old test now expects the socket to open in a 5-seconds project.make all: a timeline in two tabs; when the first stops editing, the second shows "Nobody is editing" after 0.2 s.🤖 Generated with Claude Code